package com.sfac.day03.modules.test.service;

import com.github.pagehelper.Page;
import com.sfac.day03.modules.common.entity.ResultEntity;
import com.sfac.day03.modules.common.entity.SearchBean;
import com.sfac.day03.modules.test.entity.Student;

import javax.xml.transform.Result;

public interface StudentService {
    ResultEntity<Student> insertStudentForJpa(Student student);
    ResultEntity<Student> updateStudent(Student student);

    ResultEntity<Student> deleteStudent(int id);

    Student findByStudentNameAndAge(String studentName, int age);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    Student getStudentByIdAndStudentName(int id, String studentName);


}
